<template>
 <div>
     {{ appName }}
     <user :list="list"></user>
     <el-button type="primary" @click="getData">获取数据</el-button>
 </div>
</template>

<script>
 import User from '../components/User'
 export default {
   data () {
     return {
        list:[],
        appName: process.env.VUE_APP_PARAM
     }
   },
   components:{
       user:User
   },
   methods:{
       getData(){
           console.log(this.list);
           alert(JSON.stringify(this.list))
       }
   }
 }
</script>

<style>

 
</style>
